package com.ds.lens.data.vo.in.v2.monitor;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author WeiShaoying
 * @date 2019/11/7 下午2:32
 */
@Setter
@Getter
public class LensMonitorNotifyInVO {
    /**
     * 标题
     */
    @NotEmpty(message = "标题不能为空")
    @Length(max = 255)
    private String title;

    /**
     * 重新通知时间
     */
    @NotNull(message = "重新通知时间不能为空")
    private Integer renotifyTime;

    /**
     * 渠道：1onduty、2邮件、3微信、4短信
     */
    @NotNull(message = "渠道不能为空")
    @Range(min = 1,max = 4)
    private Integer channel;

    /**
     * 渠道内容
     */
    @NotEmpty(message = "渠道内容能为空")
    private String channelContent;

    /**
     * 内容
     */
    @NotEmpty(message = "通知内容能为空")
    private String content;
}
